﻿using PortfolioApp.Web.DbAdapters;
using PortfolioApp.Web.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace PortfolioApp.Web.Controllers
{
    //[Authorize]
    public class ProjectPageController : ApiController
    {
        private IPortfolioAppAdapter _adapter = new PortfolioAppAdapter();

        public IHttpActionResult Get(int id)
        {
            ProjectIndexVM vm = new ProjectIndexVM(id, 4);
            _adapter.GetProjectsForPage(vm);

            return Ok(vm);
        }
    }
}
